import request from '@/utils/request'

// 获取所有文章
export function getArticleList() {
  return request({
    url: '/v1/admin/article',
    method: 'get'
  })
}

// 删除指定文章
export function delArticle(params) {
  return request({
    url: '/v1/admin/article',
    method: 'delete',
    params: {
      Id: params
    }
  })
}

// 添加文章
export function addArticle(params) {
  return request({
    url: '/v1/admin/article',
    method: 'post',
    params
  })
}
